<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html> 
    <head> 
        <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
        <title>Clix Framework - Advanced usage example</title> 
        <base href="http://<?= $_SERVER['HTTP_HOST'] . $this->config['base'] ?>/" />
        <link media="screen" type="text/css" href="./public/screen.css" rel="stylesheet" />
    </head> 
    <body>
        <div class="public-warning">
            This is public example, we can not control what are others posting on pages inside this wiki. If you don't like what you see, <a href="./reset">reset</a> this wiki to it's <a href="./reset">initial state</a>!
        </div>
        <div id="content">
            <p class="float-right">
                <?= $this->menu ?>
            </p>
            <?= $this->header ?>
            <hr />
            <? if (($this->admin)and(!$this->locked)) { ?>
                <div class="float-right">
                <? if (isset($this->edit)) { ?>
                <a href="./edit/<?= $this->edit ?>">[edit]</a>
                <? } ?>
                <? if (isset($this->return)) { ?>
                <a href="./<?= $this->return ?>">[cancel]</a>
                <? } ?>
                </div>
            <? } ?>

            <?= $this->_content ?>
        </div>
        <div class="footer">
                Based on <a href="http://clix.red-pill.cz/" target="_blank">Clix Framework</a>
                <? if ($this->admin) { ?>
                | <a href="./special">Special pages</a>
                | <a href="./logout">Logout</a>
                <? } ?>
                <? if (!$this->admin) { ?>
                | <a href="./login">Admin</a>
                <? } ?>
                <br /><br />
            <?= $this->footer ?>
        </div>
    </body> 
</html>